<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:70:"D:\phpStudy\WWW\thinkphp5\public/../app1/index\view\test\postlist.html";i:1488437800;}*/ ?>
<div>
	<table border="1" style="border-collapse: collapse;">
		<tr>
			<th>id</th>
			<th>title</th>
			<th>user_id</th>
			<th>create_time</th>
		</tr>
		<?php if(is_array($list) || $list instanceof \think\Collection): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$post): $mod = ($i % 2 );++$i;?>
		<tr>
			<td><?php echo $post['id']; ?></td>
			<td><a href="<?php echo url('/index/test/postdetail'); ?>?id=<?php echo $post['id']; ?>"><?php echo $post['title']; ?></a></td>
			<td><?php echo $post['user_id']; ?></td>
			<td><?php echo $post['create_time']; ?></td>
		</tr>
		<?php endforeach; endif; else: echo "" ;endif; ?>
	</table>
</div>
<?php echo $list->render(); ?>
<a href="<?php echo url('/index/Test/postPage'); ?>"><input type="button"
	value="发贴"></a>
